package com.zhkj.txg.module.home.entity

import com.chad.library.adapter.base.entity.node.BaseNode
import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse

data class CategoryAllResponse(
    val data: MutableList<CategoryTopEntity> = mutableListOf()
) : BaseResponse()

data class CategoryTopEntity(
    val id: Int,
    val name: String = "",
    @SerializedName("ad_image")
    val image: String = "",
    @SerializedName("jump_type")
    val jumpType: Int? = 0,
    val params: String? = null,
    @SerializedName("tmenu")
    val child: MutableList<CategorySecondEntity> = mutableListOf()
)

data class CategorySecondEntity(
    val id: Int,
    val name: String = "",
    @SerializedName("sub_menu")
    val child: MutableList<CategoryThirdEntity> = mutableListOf()
) : BaseNode() {
    override var childNode: MutableList<BaseNode>? = null
}

data class CategoryThirdEntity(
    val id: Int,
    val name: String = "",
    val image: String = ""
) : BaseNode() {
    override val childNode: MutableList<BaseNode>? = null
}
